package com.j4dream.webapp.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.validation.constraints.Min;

public class DailyVolumeModel implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 956941096851789749L;

	private String id;
	private List<String> domains = new ArrayList<String>();
	@Min(1)
	private long volume;

	private boolean others;

	public boolean isOthers() {
		return others;
	}

	public void setOthers(boolean others) {
		this.others = others;
	}

	public long getVolume() {
		return volume;
	}

	public void setVolume(long volume) {
		this.volume = volume;
	}

	public DailyVolumeModel() {
	}

	public DailyVolumeModel(String id, String domain, long volume) {
		super();
		this.domains.add(domain);
		this.volume = volume;
		this.id = id;
	}

	public DailyVolumeModel(String id, List<String> domains, long volume) {
		super();
		this.domains = domains;
		this.volume = volume;
		this.id = id;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public List<String> getDomains() {
		return domains;
	}

	public void setDomains(List<String> domains) {
		this.domains = domains;
	}

}
